package com.rd.student.jike.class2.lihongming.week724_730.Day727;

import java.io.FileOutputStream;
import java.io.PrintStream;

/**
 * @Auther:Heinrich
 * @Date:2023/7/27-07-27-16:30
 * @Description:c230727
 * @version:1.0
 */
public class TestPrintStream {
    public static void main(String[] args)throws Exception {
        FileOutputStream fos = new FileOutputStream("streamPrint.txt");
        PrintStream ps = new PrintStream(fos);
        ps.println("hello PrintStream");
        System.out.println("hello PrintStream");
        ps.close();
    }
}
